<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>MYSHOP 管理中心 - 添加新商品</title>
  <meta name="robots" content="noindex, nofollow">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <css file="__PUBLIC__/Admin/css/general.css" />
  <css file="__PUBLIC__/Admin/css/main.css" />
  <script type="text/javascript" src="__PUBLIC__/Admin/js/transport.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Admin/js/common.js"></script>
</head>
<body>

  <h1>
    <span class="action-span">
      <a href="{:U('Goods/index')}">商品列表</a>
    </span>
    <span class="action-span1">
      <a href="index.php?act=main">MYSHOP 管理中心</a>
    </span>
    <span id="search_id" class="action-span1">- 添加新商品</span>
    <div style="clear:both"></div>
  </h1>
  <script type="text/javascript" src="../js/utils.js"></script>
  <script type="text/javascript" src="js/selectzone.js"></script>
  <script type="text/javascript" src="js/colorselector.js"></script>
  <script type="text/javascript" src="../js/calendar.php?lang="></script>
  <link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />

  <!-- start goods form -->
  <div class="tab-div">
    <!-- tab bar -->
    <div id="tabbar-div">
      <p>
        <span class="tab-front" id="general-tab">通用信息</span>
        <span class="tab-back" id="detail-tab">详细描述</span>
        <span class="tab-back" id="mix-tab">其他信息</span>
      </p>
    </div>

    <!-- tab body -->
    <div id="tabbody-div">
      <form enctype="multipart/form-data" action="" method="post" name="theForm" >
        <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
        <table width="90%" id="general-table" align="center">
          <tr>
            <td class="label">商品名称：</td>
            <td>
              <input type="text" name="goods_name" value="" style="float:left;color:;" size="30" />
              <span class="require-field">*</span>
            </td>
          </tr>
          <tr>
            <td class="label">商品货号：</td>
            <td>
              <input type="text" name="goods_sn" value="" size="20" onblur="checkGoodsSn(this.value,'0')" />
              <span id="goods_sn_notice"></span>
              <br />
              <span class="notice-span" style="display:block"  id="noticeGoodsSN">如果您不输入商品货号，系统将自动生成一个唯一的货号。</span>
            </td>
          </tr>
          <tr>
            <td class="label">商品分类：</td>
            <td>
              <select name="cat_id" onchange="hideCatDiv()" >
                <option value="0">请选择...</option>
                <option value="3" >男装</option>
                <option value="4" >&nbsp;&nbsp;&nbsp;&nbsp;衬衫</option>
                <option value="5" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;毛料</option>
              </select>
              <span class="require-field">*</span>
            </td>
          </tr>

          <tr>
            <td class="label">商品品牌：</td>
            <td>
              <select name="brand_id" onchange="hideBrandDiv()" >
                <option value="0">
                  请选择...
                  <option value="1">111</option>
                  <option value="2">222</option>
                  <option value="3">333</option>
                  <option value="4">444</option>
                  <option value="5">555</option>
                  <option value="6">666</option>
                </select>
                <span class="require-field">*</span>
              </td>
            </tr>

            <tr>
              <td class="label">本店售价：</td>
              <td>
                <input type="text" name="shop_price" value="0" size="20" onblur="priceSetted()"/>
                <span class="require-field">*</span>
              </td>
            </tr>

            <tr>
              <td class="label">市场售价：</td>
              <td>
                <input type="text" name="market_price" value="0" size="20" />
              </td>
            </tr>

            <tr>
              <td class="label">促销价：</td>
              <td id="promote_3">
                <input type="text" id="promote_1" name="promote_price" value="0" size="20" />
              </td>
            </tr>

            <tr>
              <td class="label">上传商品图片：</td>
              <td>
                <input type="file" name="goods_img" size="35" />
                <img src="images/no.gif" />
                <br />
                <input type="text" size="40" value="商品图片外部URL" style="color:#aaa;" onfocus="if (this.value == '商品图片外部URL'){this.value='http://';this.style.color='#000';}" name="goods_img_url"/>
              </td>
            </tr>
            <tr id="auto_thumb_1">
              <td class="label">上传商品缩略图：</td>
              <td id="auto_thumb_3">
                <input type="file" name="goods_thumb" size="35" />
                <img src="images/no.gif" />
                <br />
                <input type="text" size="40" value="商品缩略图外部URL" style="color:#aaa;" onfocus="if (this.value == '商品缩略图外部URL'){this.value='http://';this.style.color='#000';}" name="goods_thumb_url"/>
                <br />
                <label for="auto_thumb">
                  <input type="checkbox" id="auto_thumb" name="auto_thumb" checked="true" value="1" onclick="handleAutoThumb(this.checked)" />
                  自动生成商品缩略图
                </label>
              </td>
            </tr>
          </table>

          <!-- 详细描述 -->
          <table width="90%" id="detail-table" style="display:none">
            <tr>
              <td>
                <input type="hidden" id="goods_desc" name="goods_desc" value="" style="display:none" />
                <input type="hidden" id="goods_desc___Config" value="" style="display:none" />
                <iframe id="goods_desc___Frame" src="" width="100%" height="320" frameborder="0" scrolling="no"></iframe>
              </td>
            </tr>
          </table>

          <!-- 其他信息 -->
          <table width="90%" id="mix-table" style="display:none" align="center">
            
            <tr>
              <td class="label">商品库存数量：</td>
              <td>
                <input type="text" name="goods_number" value="1" size="20" />
                <br />
                <span class="notice-span" style="display:block"  id="noticeStorage">库存在商品为虚货或商品存在货品时为不可编辑状态，库存数值取决于其虚货数量或货品数量</span>
              </td>
            </tr>
            
            <tr>
              <td class="label">加入推荐：</td>
              <td>
                <input type="checkbox" name="is_best" value="1"  />
                精品
                <input type="checkbox" name="is_new" value="1"  />
                新品
                <input type="checkbox" name="is_hot" value="1"  />
                热销
              </td>
            </tr>
            <tr id="alone_sale_1">
              <td class="label" id="alone_sale_2">上架：</td>
              <td id="alone_sale_3">
                <input type="checkbox" name="is_on_sale" value="1" checked="checked" />
                打勾表示允许销售，否则不允许销售。
              </td>
            </tr>
            <tr>
              <td class="label">商品关键词：</td>
              <td>
                <input type="text" name="keywords" value="" size="40" />
                用空格分隔
              </td>
            </tr>
            <tr>
              <td class="label">商品简单描述：</td>
              <td>
                <textarea name="goods_brief" cols="40" rows="3"></textarea>
              </td>
            </tr>
            
          </table>

          <div class="button-div">
            <input type="hidden" name="goods_id" value="0" />
            <input type="button" value=" 确定 " class="button" onclick="validate('0')" />
            <input type="reset" value=" 重置 " class="button" />
          </div>
          <input type="hidden" name="act" value="insert" />
        </form>
      </div>
    </div>
    <!-- end goods form -->
    <script type="text/javascript" src="js/validator.js"></script>
    <script type="text/javascript" src="js/tab.js"></script>
    
    <!-- <div id="footer">
      共执行 9 个查询，用时 0.173736 秒，Gzip 已禁用，内存占用 5.594 MB
      <br />
      版权所有 &copy; 2005-2012 上海商派网络科技有限公司，并保留所有权利。
    </div> -->

</body>
</html>